compositor: Ignore offscreen windows when unredirecting
authorJonas Ådahl <jadahl@gmail.com>
Fri, 13 Oct 2017 08:29:20 +0000 (16:29 +0800)
committerJeremy Bicha <jbicha@debian.org>
Sat, 21 Oct 2017 23:47:22 +0000 (00:47 +0100)
commit4bf219bb9425c0abd64883f90b9d0b23139b2375
tree2b9e3e0f4ef1ae133340882a7b8fcd9b04c75593
parent08c8613b4541353bba2464ed2f83c9b8c39ba7c9
compositor: Ignore offscreen windows when unredirecting

When determining whether we should unredirect a window or not, ignore
offscreen windows, and just check the top most visible window.

Previously this was not an issue, but since 'stack-tracker: Keep
override redirect windows on top' we started sorting the UI frames
window, which is an offscreen override redirect window, on top, causing
the unredirect checking code to always check whether to unredirect the
UI frames window. This effectively disabled the compositor bypass
functionality.

https://bugzilla.gnome.org/show_bug.cgi?id=788493

Gbp-Pq: Name 0013-compositor-Ignore-offscreen-windows.patch
src/compositor/compositor-private.h
src/compositor/compositor.c